ShortPixel\Controller\ApiController D

Total Complexity 150
Dependencies 5
Dependents 3
Total lines 878
Lines of code 563
Logical lines of code 338
Comment lines 156
Methods 18
Properties 5

Methods 18

Method Rating Maintainability Complexity Lines of code
handleResponse()
D
24
51 140
handleSuccess()
D
28
29 128
processMediaItem()
A
44 16 41
handleDownload()
A
42 12 48
getRequest()
A
40 10 58
doRequest()
A
46 8 36
setPreferredProtocol()
S
61 5 11
fromArchive()
S
52 4 23
dumpMediaItem()
S
54 4 19
returnSuccess()
S
63 2 11
getInstance()
S
73 2 5
parseResponse()
S
73 1 5
getSetting()
S
80 1 3
getResultObject()
S
67 1 8
returnFailure()
S
67 1 8
returnRetry()
S
69 1 7
returnOK()
S
69 1 7
__construct()
S
71 1 5